package com.example.demo01.Service.webService;

import com.example.demo01.Dao.webDao.ClientUserDao;
import com.example.demo01.Entity.webEntity.ClientUserInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class ClientUserService {

    @Autowired
    private ClientUserDao clientUserDao;

    /**
     * 获取所有用户信息
     * */
    public List<Map<String, Object>> getAllClientUsers(){
        return clientUserDao.getAllClientUsers();
    }

    /**
     * 根据用户的身份证号获取用户的详细信息
     * */
    public ClientUserInfo getDetailInfoByIdNum(String idNum){
        return clientUserDao.getDetailInfoByIdNum(idNum);
    }

}
